import request from "@/utils/request" 
var dingdanAll=(id)=>{
    return request.post("/util/commodity/byid/"+id)
} 
var fenlei=()=>{
    return request.post("/util/commodity-role/all")
}
var gaiorzeng=(obj)=>{
    return request.post("/util/commodity/xiuorzheng",obj.value)
}
var xiangqing=(id)=>{
    return request.post("/util/commodity/xianqing/"+id)
}
var gaiorzeng=(obj)=>{
    return request.post("/util/commodity/xiuorzheng/",obj.value)
}
var delectx=(tid)=>{
    return request.post("/util/commodity/delectsc/"+tid)
}
export default {dingdanAll,fenlei,gaiorzeng,xiangqing,delectx}
